package com.bishe.demo.modules.account.service;

import com.bishe.demo.modules.account.entity.User;
import com.bishe.demo.modules.common.entity.ResultEntity;
import com.bishe.demo.modules.common.entity.SearchBean;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface UserService {
    ResultEntity<User> register(User user);

    ResultEntity<User> login(User user);

    ResultEntity<User> updateUserPassword(User user);

    ResultEntity<User> updateUserInfo(User user);

    ResultEntity<User> deleteUserByUserId(int userId);

    User getUserByUserId(int userId);

    User getUserByUserName(String userName);

    PageInfo<User> getUsersBySearchBean(SearchBean searchBean);

    void logout();
}
